	<h1><%=@leave_type.title%></h1>
	<div class="breadcrumbs">
	My Attendance Information | <%=link_to 'Apply Leave',:action => 'apply_leave'%> | <%=link_to 'Leave Information', :action => 'leave_information'%> | <%=link_to 'Late Information',:action => 'late_information'%></div>
	<div class="breadcrumbs">
	<%@leave_types.each do |leave_type|%>
  <%=link_to leave_type.title, :action => 'show_leave_info',:id => leave_type.id%> | 
  <%end%> </div>
<img src="/images/cal_info2.png" />
<table class="tb_listing">
	<thead>
	<tr class="month">
		<td colspan="2"><h3>Leave List</h3></td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td width="12%">&nbsp;</td>
		<td width="1%">&nbsp;</td>
	</tr>
	<tr>
		<th width="10%">Date</th>
		<th width="13%">Employee Name</th>
		<th width="13%">Employee Id </th>
		<th width="15%">Start Date </th>
		<th width="18%">End Date </th>
		<th width="18%">Type of Leave</th>
		<th>Remarks</th>
		<th>&nbsp;</th>
	</tr>
	</thead>
	<%@leaves.each do |leave|%>
	<tr class="<%= cycle "odd","even" %>">
	
		<td width="10%"><%=leave.start_date%></td>
		<td width="13%"><%=leave.employee.name%></td>
		<td><%=leave.employee.employee_number%></td>
		<td><%=leave.start_date.strftime("%d %B %Y")%></td>
		<td><%=leave.end_date.strftime("%d %B %Y")%></td>
		<td><%=leave.leave_type.title%></td>
		<td><%=leave.remarks%></td>
		<td>&nbsp;</td>
	</tr>
	<%end%>
</table>

<div class="pagination"> <%= will_paginate @leaves%></div> 

	